package org.hegang.design.first.adapterpattern;

/**
 * @ClassName AdapterPatternMain
 * @Describe: 适配器测试函数
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 23:17 2019/7/22
 * @Modified_By: TODO
 * @Version: V1.0
 */
public class AdapterPatternMain {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play("vlc", "hegang.vlc");
        audioPlayer.play("mp3", "hegang.mp3");
        audioPlayer.play("mp4", "hegang.mp4");
        audioPlayer.play("avi", "hegang.avi");
    }
}
